<?php
require_once ($_SERVER['DOCUMENT_ROOT'] . '/common/all_setup_first.php');
require_once ($_SERVER['DOCUMENT_ROOT'] . '/class/db/DB.php');
require_once ($_SERVER['DOCUMENT_ROOT'] . '/class/other/Message.php');
require_once ($_SERVER['DOCUMENT_ROOT'] . '/common/function_common.php');

if (!$is_login){
	//未登录
	exit;
}
$obj_conn = new DB();
$obj_Message = new Message();

$arr_input['message_type']= $_GET['message_type'];
$arr_input['baby_id'] = $login_id;
$arr_input['id'] = $_GET['id'];
$arr_message_list = $obj_Message->getMessageList($obj_conn,$arr_input);

if($_GET['message_type'] == 1){
	print_r($arr_input);
	$obj_Message->setMessageType($obj_conn,$arr_input);
}	
?>

<?php
$i=0;
  	echo '<tr><td>',$arr_message_list[$i][0],'</td></tr>';
    echo '<tr><td>',$arr_message_list[$i][1],'</td></tr>';
    echo '<tr><td>',$arr_message_list[$i][2],'</td></tr>';
    echo '<tr><td>',$arr_message_list[$i][3],'</td></tr>';
    echo '<tr><td>',$arr_message_list[$i][4],'</td></tr>';
    echo $arr_message_list[$i][5]."<br>";
    echo $arr_message_list[$i][6]."<br>";
    echo $arr_message_list[$i][7]."<br>";
    echo $arr_message_list[$i][8]."<br>";  
?>